FROM java:8-jre
RUN useradd -s /bin/bash -g root -u 1002 yarn

ADD ./target/gateway.jar /app/
CMD ["java", "-jar", "/app/gateway.jar"]

EXPOSE 4000